package com.modifiertech.lineage.event;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.event.entity.player.PlayerEvent;

/**玩家魔力变更事件
 *
 */
public class PlayerManaModifyEvent extends PlayerEvent {
    //魔力变更数值,正为补充,负为扣减
    private double modifyMana;

    public PlayerManaModifyEvent(EntityPlayer player, double modifyMana) {
        super(player);
        this.modifyMana = modifyMana;
    }

    public double getModifyMana() {
        return modifyMana;
    }

    public void setModifyMana(double modifyMana) {
        this.modifyMana = modifyMana;
    }

    public static class Pre extends PlayerManaModifyEvent {
        public Pre(EntityPlayer player, double modifyMana) {
            super(player, modifyMana);
        }
    }

    public static class Post extends PlayerManaModifyEvent {
        public Post(EntityPlayer player, double modifyMana) {
            super(player, modifyMana);
        }
    }
    public static class PostErr extends PlayerManaModifyEvent {
        public PostErr(EntityPlayer player, double modifyMana) {
            super(player, modifyMana);
        }
    }

}
